/*
 * @Descripttion: 
 * @version: 
 * @Author: maxin
 * @Date: 2019-11-10 20:45:09
 * @LastEditors: maxin
 * @LastEditTime: 2019-11-13 11:15:04
 */
import Vue from 'vue'
import App from './App.vue'
import {
  Button,
  Row,
  Col,
  Container,
  Header,
  Main,
  Card,
  Input,
  MessageBox,
  Message,
  Progress,
  Form,
  FormItem,
  Drawer,
  Dropdown,
  DropdownMenu,
  DropdownItem,
  Tabs,
  TabPane,
  CheckboxGroup,
  Checkbox,
  InputNumber,
  Divider,
  Link
} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import VueRouter from 'vue-router'

import Login from './components/login';
import Home from './components/home';

Vue.use(Button)
Vue.use(Row)
Vue.use(Col)
Vue.use(Container)
Vue.use(Header)
Vue.use(Main)
Vue.use(Card)
Vue.use(Input)
Vue.use(Progress)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Drawer)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(CheckboxGroup)
Vue.use(Checkbox)
Vue.use(InputNumber)
Vue.use(Divider)
Vue.use(Link)

Vue.use(VueRouter)

Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$message = Message;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$alert = MessageBox.alert;

Vue.config.productionTip = false


const router = new VueRouter({
  routes: [
    // 动态路径参数 以冒号开头
    { path: '/', component: Login },
    { path: '/login', name: 'login', component: Login },
    { path: '/home', name: 'home', component: Home }
  ]
})

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
